﻿using Microsoft.Win32;
using Sinacor.OMM.Util;

namespace Sinacor.OMM.Deployment.Setup.Util
{
    public class Sinacor
    {
        #region [ Public Methods ]

        public static bool CheckInstalled()
        {
            return (WindowsRegistry.KeyExists(@"SOFTWARE\SINACOR\Infra.Data",
                                   Registry.LocalMachine) && WindowsRegistry.KeyExists(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sinacor-v1",
                                   Registry.LocalMachine));
        }

        #endregion
    }
}